package com.nexgo.payment.trans.scansale;

import com.nexgo.payment.BaseTransPresenter;
import com.nexgo.payment.BaseTransView;
import com.nexgo.payment.entity.TransData;

/**
 * 扫码支付
 * Created by wanghongyang on 2017/9/1.
 */
public interface ScanSaleContract {

    interface View extends BaseTransView<Presenter> {

        /**
         * 显示扫码界面
         */
        void showScanFragment(TransData transData);

        void showNeedScanQuery(int Times);

        void showScanOrderFragment(TransData transData);

        void showTradeFail(String resMessage);
        //lr add 输入付款码界面
        void showInputPayCode();
        /**
         * 调用扫码界面
         */
        void showScanFragment();

    }

    interface Presenter extends BaseTransPresenter {

        /**
         * 扫码完成后，返回界面状态恢复后调用
         */
        void showOnScanNextAndRestart();

        /**
         * 扫码查询
         */
        void ShowQueryScan(boolean isFirstTime);

        /**
         * 订单取消
         */
        void ShowCancelScan();


        /**
         * 扫码二维码显示
         */
//        void ShowScanQRcode();

        /**
         * 扫码撤销
         */
        void ShowVoidScan();
		
		  void ShowSelectChannel(String Channel);
        /**
         * 返回扫码数据
         * @param data
         */
        void inputScanNext(Object data);
    }
}
